package com.nercel.dsj.gksales.dao.mapper;

import com.nercel.dsj.gksales.model.QueryParams;
import com.nercel.dsj.gksales.model.dto.SalesRecordResultDTO;
import com.nercel.dsj.gksales.model.entity.SellRecord;
import com.nercel.dsj.gksales.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface SellRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SellRecord record);

    int insertSelective(SellRecord record);

    SellRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SellRecord record);

    int updateByPrimaryKey(SellRecord record);

    List<SalesRecordResultDTO> query(QueryParams params);

    List<Map<String, Object>> sellRecordsStatistics(QueryParams queryParams);
}